﻿@model IEnumerable<K3TOOLS.Models.TableColumnData>
@{
    Layout = null;
    //List<dynamic> MainTableList = ViewBag.MTBlist;
    //List<dynamic> LanguageTableList = ViewBag.LTList;
}

<div>

    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">表结构</a></li>
        <li role="presentation"><a href="#MainTable" aria-controls="profile" role="tab" data-toggle="tab">主表数据</a></li>
        <li role="presentation"><a href="#LanguageTable" aria-controls="messages" role="tab" data-toggle="tab">多语言表数据</a></li>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="home">
            <table class="table table-bordered table-hover table-striped" style="word-break:break-all;word-wrap:break-all;">
                <tr class="info">
                    <th>列名</th>
                    <th>数据类型</th>
                    <th>是否为空</th>
                    <th>数据长度</th>
                </tr>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>
                            @item.ColumnName
                        </td>
                        <td>
                            @item.DataType
                        </td>
                        <td>
                            @item.ColIsNullable
                        </td>
                        <td>
                            @item.ColLength
                        </td>
                    </tr>

                }

            </table>
        </div>
        <div role="tabpanel" class="tab-pane" id="MainTable">主表数据</div>
        <div role="tabpanel" class="tab-pane" id="LanguageTable">多语言表数据</div>
    </div>

</div>